package com.EAsystem.entity;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class Student {
    private Long id;
    private User user;
    private String studentNo;
    private Class clazz;
    private Integer gender;   // 0:女 1:男
    private String phone;
    private String email;
    private String createTime;
    private String updateTime;
    
    @JsonIgnore
    private List<Attendance> attendanceList;
    @JsonIgnore
    private List<Grade> gradeList;
    @JsonIgnore
    private CourseSelection courseSelection;
    @JsonIgnore
    private List<Evaluation> avaluationList;
    @JsonIgnore
    private List<HomeworkSubmission> homeworkSubmissionList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getStudentNo() {
        return studentNo;
    }

    public void setStudentNo(String studentNo) {
        this.studentNo = studentNo;
    }

    public Class getClazz() {
        return clazz;
    }

    public void setClazz(Class clazz) {
        this.clazz = clazz;
    }

    public Integer getGender() {
        return gender;
    }

    public void setGender(Integer gender) {
        this.gender = gender;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public List<Attendance> getAttendanceList() {
        return attendanceList;
    }

    public void setAttendanceList(List<Attendance> attendanceList) {
        this.attendanceList = attendanceList;
    }

    public List<Grade> getGradeList() {
        return gradeList;
    }

    public void setGradeList(List<Grade> gradeList) {
        this.gradeList = gradeList;
    }

    public CourseSelection getCourseSelection() {
        return courseSelection;
    }

    public void setCourseSelection(CourseSelection courseSelection) {
        this.courseSelection = courseSelection;
    }

    public List<Evaluation> getAvaluationList() {
        return avaluationList;
    }

    public void setAvaluationList(List<Evaluation> avaluationList) {
        this.avaluationList = avaluationList;
    }

    public List<HomeworkSubmission> getHomeworkSubmissionList() {
        return homeworkSubmissionList;
    }

    public void setHomeworkSubmissionList(List<HomeworkSubmission> homeworkSubmissionList) {
        this.homeworkSubmissionList = homeworkSubmissionList;
    }
}